<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/6
 * Time: 16:40
 */
//实现跨域
header('Access-Control-Alioe-Origin:*');

if($_SERVER["REQUEST_METHOD"]){
    $uname=$_REQUEST["uuname"];
    $upwd=$_REQUEST["uupwd"];
}

//1.链接数据量，ip，用户名，密码，数据库名称
$severName = '127.0.0.1';//数据库名称ip
$dbUser = 'root';//用户名
$dbPwd = '';//密码
$dbName = 'hz1706';//库名称

$conn = new mysqli($severName, $dbUser, $dbPwd, $dbName);

mysqli_query($conn, "set names utf8");//配置一个connection字符串，设置字符集
if ($conn->connect_error) {//->相当于js里面的  .  属性

}
